package com.klangner.pathfinding
{
  
  import com.klangner.pathfinding.model.Grid;
  
  import mx.containers.Canvas;

 [SWF(backgroundColor=0xffffff)]
  public class PathfindingView extends Canvas
  {
    private var _grid:Grid;
    private var _gridView:GridView;
        
    // ------------------------------------------------------------------------
    public function init():void{
//      stage.align = StageAlign.TOP_LEFT;
//      stage.scaleMode = StageScaleMode.No_SCALE;
  
      _grid = new Grid(50, 30)
      _grid.setStartNode(0, 2)
      _grid.setEndNode(48, 27)
  
      _gridView = new GridView(_grid);
      _gridView.x = 20;
      _gridView.y = 20;
      this.rawChildren.addChild(_gridView);
    }
    
  }
}